//
//  SignUpStep4ViewController.swift
//  FridgeSolo
//
//  Created by LiuXing on 2017/6/10.
//  Copyright © 2017年 kumi.com. All rights reserved.
//

import UIKit
import FirebaseAuth
import SVProgressHUD
import Firebase

class SignUpStep4ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        title = "Account Created"
//        let refence = Database.database().reference()
    }

//    private lazy var ref: DatabaseReference = Database.database().reference()
    
    @IBAction func continueButtonClick(_ sender: Any) {
        
//        UIApplication.shared.keyWindow?.rootViewController = RootTabBarController()
        
        Auth.auth().signIn(withEmail: "723829595@qq.com", password: "123456") { (user, error) in
            print(user)
            print(error)
            
            if error == nil { // 登录成功 就要保存数据了
            } else { // 登录失败
            }
        }
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
